package com.tommy.ddp.grid.skin
{
	import com.tommy.ddp.definition.DDPConfig;
	import com.tommy.ddp.definition.GridSkinFactory;
	import com.tommy.ddp.grid.DdpGrid;
	
	import flash.filters.DisplacementMapFilter;
	
	import starling.display.DisplayObject;
	import starling.display.Quad;
	import starling.textures.Texture;

	/**
	 * 
	 * @author hongxuan
	 * 
	 */	
	public class NormalGridSkin implements IGridSkin
	{
		private var _mc:Quad;
		
		public function NormalGridSkin()
		{
			_mc = new Quad(DDPConfig.GRID_SIZE_W,DDPConfig.GRID_SIZE_H);
			_mc.color = 0;
			_mc.touchable = false;
		}
		
		public function addedAnimate():void
		{
		}
		
		public function diposeAnimate():void
		{
		}
		
		public function dispose():void
		{
			_mc.removeFromParent(true);
			_mc = null;
		}
		
		public function get isAvaliable():Boolean
		{
			return true;
		}
		
		public function get isCanBefind():Boolean
		{
			return true;
		}
		
		public function get nextTypeByClear():uint
		{
			return GridSkinFactory.NORMAL;
		}
		
		public function get nextTypeByPunch():uint
		{
			return GridSkinFactory.NORMAL;
		}
		
		
		public function get type():uint
		{
			return GridSkinFactory.NORMAL;
		}
		
		public function get mc():DisplayObject
		{
			return _mc;
		}
	}
}